package com.swyc.osschat.Test.designMode.decorate.strategy;

import com.swyc.osschat.Test.designMode.decorate.base.Dog;

/**
 * @description 抽象装饰
 * @Author: z156940l@outlook.com
 * @className Decorator
 * @Date: 2022/6/27 15:16
 */
public class Decorator implements Dog{

    private Dog dog;
    public Decorator(Dog dog){
        this.dog = dog;
    }

    @Override
    public void function() {
        dog.function();
    }
}
